Skip to main content

Visual Class

Description:

  A class for creating "Visual" objects.

__call

Type: Metamethod.

Description:

  Creates a new "Visual" object with the specified name.

Signature:

metamethod __call: function(self: VisualClass, name: string): Visual

Parameters:

ParameterTypeDescription
namestringThe name of the new "Visual" object.
Could be a particle file, a frame animation file or a image file.

Returns:

Return TypeDescription
VisualThe new "Visual" object.